<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/9 0009
 * Time: 15:49
 */

namespace App\Tasks;

use Hyperf\Di\Annotation\Inject;
use Hyperf\Contract\StdoutLoggerInterface;


class MethodTask
{

    /**
     * @Inject()
     * @var StdoutLoggerInterface
     */
    private $logger;

    public function execute()
    {
        $this->logger->info(date('Y-m-d H:i:s', time()).'任务MethodTask');
    }
}
